/*
 * utils.h
 *
 *  Created on: 05/06/2011
 *      Author: godinho
 */

#ifndef UTILS_H_
#define UTILS_H_

#include <math.h>
#include <time.h>
#include <stdlib.h>

extern int randomSeed;

#define RANDOM_NUM	(fabs((float)rand()/(RAND_MAX)))
#define RANDOM_SEED (srand(time(0) + randomSeed++))

int poison(float rate);

#endif /* UTILS_H_ */
